<!--
  * 商品列表
  *
-->
<template>
  <a-row :gutter="10">
    <a-col :span="4">
      <CategoryTree />
    </a-col>

    <a-col :span="20">
      <GoodsList />
    </a-col>
  </a-row>
</template>
<script setup lang="ts">
import CategoryTree from './components/category-tree/index.vue'
import GoodsList from './components/goods-list/index.vue'
import eventEmitter from '@/lib/event-emitter'
import customEventName from './product-event-name'
onUnmounted(() => {
  Object.values(customEventName).forEach((eventName) => {
    eventEmitter.offAll(eventName)
  })
})
</script>
